<?php

namespace app\common\model\order;

use app\common\model\BaseModel;
use think\response\Json;


/**
 * 购物车模型模型
 */
class CartOrder extends BaseModel
{
    protected $pk = 'id';
    protected $name = 'user_cart_order';
    protected $type = [
      'cart_ids' => 'json'
    ];

    public static function createData($post_data = [])
    {
        if($post_data){
            $model = new static();
            $post_data['app_id'] = self::$app_id;
            $data = $model->save($post_data);
            return $data;
        }

    }

}
